package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountProductRecharge;
import com.ecoolex.discount.sales.entity.DiscountProductRechargeExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountProductRechargeMapper {
    long countByExample(DiscountProductRechargeExample example);

    int deleteByExample(DiscountProductRechargeExample example);

    int deleteByPrimaryKey(Integer productId);

    int insert(DiscountProductRecharge record);

    int insertSelective(@Param("record") DiscountProductRecharge record, @Param("selective") DiscountProductRecharge.Column ... selective);

    DiscountProductRecharge selectOneByExample(DiscountProductRechargeExample example);

    List<DiscountProductRecharge> selectByExample(DiscountProductRechargeExample example);

    DiscountProductRecharge selectByPrimaryKey(Integer productId);

    DiscountProductRecharge selectByPrimaryKeyWithLogicalDelete(@Param("productId") Integer productId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountProductRecharge record, @Param("example") DiscountProductRechargeExample example, @Param("selective") DiscountProductRecharge.Column ... selective);

    int updateByExample(@Param("record") DiscountProductRecharge record, @Param("example") DiscountProductRechargeExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountProductRecharge record, @Param("selective") DiscountProductRecharge.Column ... selective);

    int updateByPrimaryKey(DiscountProductRecharge record);

    int batchInsert(@Param("list") List<DiscountProductRecharge> list);

    int batchInsertSelective(@Param("list") List<DiscountProductRecharge> list, @Param("selective") DiscountProductRecharge.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountProductRechargeExample example);

    int logicalDeleteByPrimaryKey(Integer productId);
}